package com.enzoism;

import com.enzoism.core.Downloader;
import com.enzoism.util.LogUtils;

import java.util.Scanner;

public class DownloadMain {
    public static void main(String[] args) {
//        String url = null;
//        if (args == null || args.length == 0) {
//            for (; ; ) {
//                LogUtils.info("请输入下载地址");
//                Scanner scanner = new Scanner(System.in);
//                url = scanner.next();
//                if (url != null) {
//                    break;
//                }
//            }
//        }else {
//            url = args[0];
//        }

//        String url = "https://pm.myapp.com/invc/xfspeed/qqpcmgr/download/QQPCDownload1333.exe";
        String url = "https://cdn.zjbl.qq.com/app/qqpcmgr_v13.10.21914.214_s1241.exe";
        Downloader downloader = new Downloader();
        downloader.download(url);
    }

}
